package mvp.com.bbc.rcjavaretrofitdaggermvp.model;

import io.reactivex.Observable;
import mvp.com.bbc.rcjavaretrofitdaggermvp.app.BaseApplication;
import mvp.com.bbc.rcjavaretrofitdaggermvp.app.apiUrl.ApiUrl;
import mvp.com.bbc.rcjavaretrofitdaggermvp.app.contact.ArtListContact;
import mvp.com.bbc.rcjavaretrofitdaggermvp.bean.ThemeListBean;

/**
 * Created by ${cbf} on 2017/12/2.
 */

public class ThemNameModel implements ArtListContact.ThemNameModel {
    @Override
    public Observable<ThemeListBean> themNameModel() {
        ApiUrl.ArtThemName themName = BaseApplication.getRetrofit().create(ApiUrl.ArtThemName.class);
        Observable<ThemeListBean> observable = themName.artThemName();
        return observable;
    }
}
